//
//  DYRechargeSetCell.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/17.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYRechargeSetCell.h"

@interface DYRechargeSetCell ()

@property (nonatomic,strong)UILabel *rechargeLabel;
@property (nonatomic,strong)UILabel *discountTypeLabel;
@property (nonatomic,strong)UILabel *discountLabel;
@property (nonatomic,strong)UILabel *giveLabel;


@end

@implementation DYRechargeSetCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.sideMargin=BILIWIDTH(10);
    [self xhq_noneSelectionStyle];
    
    self.rechargeLabel = ({
        UILabel *label=[Utils labelWithTitleFontSize:14 textColor:[UIColor xhq_aTitle] alignment:1];
        label;
    });
    
    self.discountTypeLabel = ({
        UILabel *label=[Utils labelWithTitleFontSize:14 textColor:[UIColor xhq_aTitle] alignment:1];
        label;
    });
    
    self.discountLabel = ({
        UILabel *label=[Utils labelWithTitleFontSize:14 textColor:[UIColor xhq_aTitle] alignment:1];
        label;
    });
    
    self.giveLabel = ({
        UILabel *label=[Utils labelWithTitleFontSize:14 textColor:[UIColor xhq_aTitle] alignment:1];
        label;
    });
    
    [self addSubview:self.rechargeLabel];
    [self addSubview:self.discountTypeLabel];
    [self addSubview:self.discountLabel];
    [self addSubview:self.giveLabel];
    
    
    [self.rechargeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(0);
        make.centerY.equalTo(self);
        make.width.equalTo(kScreenWidth/4);
    }];
    
    [self.discountTypeLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.rechargeLabel.right);
        make.centerY.equalTo(self);
        make.width.equalTo(self.rechargeLabel);
    }];
    
    [self.discountLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.discountTypeLabel.right);
        make.centerY.equalTo(self);
        make.width.equalTo(self.rechargeLabel);
    }];
    
    [self.giveLabel makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.discountLabel.right);
        make.centerY.equalTo(self);
        make.width.equalTo(self.rechargeLabel);
    }];
    
    self.rechargeLabel.text=@"100";
    self.discountTypeLabel.text=@"充值折扣";
    self.discountLabel.text=@"1.00%";
    self.giveLabel.text=@"-";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
